package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * ForumUserSettingsEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "forum_user_settings",
    schema = "yzj_forum"
)
public class ForumUserSettingsEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId("id")
  private Integer id;

  /**
   * 接收私信
   */
  @TableField("allowPrivate")
  private Boolean allowPrivate;

  /**
   * 分享收藏夹
   */
  @TableField("shareCollection")
  private Boolean shareCollection;

  /**
   * 分享上传文件
   */
  @TableField("shareFile")
  private Boolean shareFile;

  /**
   * 分享点赞夹
   */
  @TableField("shareGood")
  private Boolean shareGood;

  /**
   * 用户id
   */
  @TableField("userId")
  private Integer userId;

  @Override
  public final Class entityClass() {
    return ForumUserSettingsEntity.class;
  }
}
